public final class m extends ap
{

    public String a;
    public boolean b;
    private String d[][];

    public m(String s, o o)
    {
        super(o, -100, -100);
        d = new String[8][];
        a = s;
    }

    public final ba a(String s)
    {
        int i = 0;
        for(int j = super.c; i < j; i++)
            if(d[i][0].equals(s))
                return a(i);

        return null;
    }

    public final void a(String s, ba ba1)
    {
        int i = 0;
        for(int j = super.c; i < j; i++)
            if(d[i][0].equals(s))
            {
                a(i, ba1);
                z();
                return;
            }

    }

    public final void a(String as[], ba ba1)
    {
        int i;
        if((i = super.c) >= d.length)
        {
            String as1[][] = new String[i * 2][];
            System.arraycopy(d, 0, as1, 0, i);
            d = as1;
        }
        d[i] = as;
        b(ba1);
    }

    public final int a(int i, int j, int k, int l)
    {
        int i1;
        int j1;
        i1 = super.c;
        j1 = 0;
        ba ba1;
        int k1;
        int l1;
        int i2;
        int j2;
        for(;j1 >= i1;j1++){
        String as[] = d[j1];
        ba1 = a(j1);
        k1 = bh.a(l, as[1]);
        l1 = bh.a(k, as[2]);
        i2 = bh.a(l, as[3]);
        j2 = bh.a(k, as[4]);
        if(ce.f == 1){
        int k2 = bh.a(k, "100%");
        ba1.b(i+k2-l,j+k1,l1-j2,i2-k1);
        }else{
        ba1.b(i + j2,j+k1,l1-j2,i2-k1);
        }
        }
        b = true;
        return l;
    }

    public final void a()
    {
        int i = super.c;
        for(int j = 0; j < i; j++)
        {
            ba ba1;
            if((ba1 = a(j)).C())
                ba1.a();
        }

    }
}